<?php
/**
 * 调用新浪的会员信息
 */
require_once(dirname(__FILE__)."/../includes/class.sina.api/saetv2.ex.class.php");

$c = new SaeTClientV2( WB_AKEY,WB_SKEY,$_SESSION['token']['access_token'] );
$ms  = $c->home_timeline(); // done
$uid_get = $c->get_uid();
$uid = $uid_get['uid'];
$user_message = $c->show_user_by_id($uid);//根据ID获取用户等基本信息

//真实姓名
$dataArray['realname']=$user_message['name'];
//昵称
$dataArray['ncname']=$user_message['screen_name'];
//1男 0女 2未知
$dataArray['sex']=$user_message['gender']=="n"?2:($user_message['gender']=="m"?1:0);
//头像
$dataArray['logo']=$user_message['profile_image_url'];
//地址
$dataArray['address']=$user_message['location']; 

?>